package com.asiainfo.bms.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图书表
 * </p>
 *
 * @author liu.hx
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("book")
@ApiModel("图书")
public class Book extends BaseModel {

    private static final long serialVersionUID=1L;

    @ApiModelProperty("ISBN书号")
    private String isbn;

    @ApiModelProperty("图书名")
    private String name;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("出版社")
    private String press;

    @ApiModelProperty("可借数量")
    private Integer leftNum;

    @ApiModelProperty("逻辑删除(1已删除,0未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
